package cn.ztelovecly.springboot.framework.constant;

public class RegExpConst {
    // 手机号验证正则表达式
    public static final String REG_MOBILE = "^[1][0-9]{10}$";

    // 固定电话验证正则表达式(含区号)
    public static final String REG_TELEPHONE_WITH_AREANO = "^[0][1-9]{1,2}[0-9]-[2-9][0-9]{6,7}$";

    // 固定电话验证正则表达式(不含区号)
    public static final String REG_TELEPHONE = "^[2-9][0-9]{6,7}$";

    // 文件路径是否合法
    public static final String REG_FILE_PATH = "^(?<path>(?:[a-zA-Z]:)?\\\\(?:[^\\\\\\?\\/\\*\\|<>:\"]+\\\\)+)(?<filename>(?<name>[^\\\\\\?\\/\\*\\|<>:\"]+?)\\.(?<ext>[^.\\\\\\?\\/\\*\\|<>:\"]+))$";
}
